from django.urls import path
from django.contrib.auth.views import LoginView
from django.contrib.auth.views import logout_then_login, auth_login
from . import views

app_name = 'login'

urlpatterns = [
    # 主页，用来显示类别等其他数据
    path('', views.show_login, name='login'),
    path('staff/', views.staff_login, name='staff_login'),
    path('login/', views.show_login, name='login'),
    path('logout/', views.user_logout, name='logout'),
    path('logout/', logout_then_login, name="logout_then_login"),
    path('sign/submit', views.register, name='sign_submit'),
    path('login/submit', views.user_login, name='login_submit'),
    path('staff/sign/submit', views.register, name='staff_sign_submit'),
    path('staff/login/submit', views.user_login, name='staff_login_submit'),
]
